package com.jumper.study.common.api;

import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * 订单状态
 */
public enum OrderStatusCode implements IEnum<Integer> {
    CANCELED(0, "已取消"),
    UNPAY(1, "待支付"),
    COMPLETE(2, "已完成"),
    APPLY_REFUND(3, "申请退款");

    private int code;

    private String message;

    private OrderStatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
